<?php
namespace app\api\controller;
use think\Controller;
use think\Session;

class Trainers extends Controller
{
    public function getList()
    {
        $result=db('trainers')->select();
        if($result)
        {
            echo json_encode($result);
        }
        else
            echo json_encode(['0']);
        die();
    }

}